import '../../public.dart';
import 'wallet_card.dart';
import 'bank_cards_widget.dart';
import 'pending_actions_widget.dart';

class WalletPage extends StatefulWidget {
  const WalletPage({super.key});

  @override
  State<WalletPage> createState() => _WalletPageState();
}

class _WalletPageState extends State<WalletPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      body: SafeArea(
        child: ProviderWidget(
          builder: (context, model, child) {
            if (!model.isInit) {
              return Center(child: CircularProgressIndicator());
            }
            return SingleChildScrollView(
              physics: const BouncingScrollPhysics(),
              child: Column(children: [WalletCard()]),
            );
          },
          model: Provider.of<UserModel>(context),
        ),
      ),
    );
  }
}
